﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Commander.DataLayer.Exceptions {
  [Serializable]
  public abstract class DomainException : Exception {

    public DomainException() { }
    public DomainException(string message) : base(message) { }
    public DomainException(string message, Exception inner) : base(message, inner) { }
    protected DomainException(
    SerializationInfo info,
    StreamingContext context)
      : base(info, context) { }

  }

  [Serializable]
  public class PersistenceException : DomainException {
    public PersistenceException() { }
    public PersistenceException(string message) : base(message) { }
    public PersistenceException(string message, Exception inner) : base(message, inner) { }
    protected PersistenceException(
    SerializationInfo info,
    StreamingContext context)
      : base(info, context) { }
  }

}
